<?php
class Mwc_SystemPoint_Block_Userpoint_Edit_Form extends Mage_Adminhtml_Block_Widget_Form{
	protected function _prepareForm(){
        $form = new Varien_Data_Form();
 
        $fieldset = $form->addFieldset('edit_userpoint', array('legend' => Mage::helper('systempoint')->__('User Point Details')));
 
        $fieldset->addField('group_title', 'text', array(
            'name'      => 'group_title',
            'title'     => Mage::helper('systempoint')->__('Group'),
            'label'     => Mage::helper('systempoint')->__('Group'),  
        	'readonly'	=> true,
        ));
        
        $fieldset->addField('email', 'text', array(
            'name'      => 'email',
            'title'     => Mage::helper('systempoint')->__('Email'),
            'label'     => Mage::helper('systempoint')->__('Email'),  
        	'readonly'	=> true,
        ));
 
        $fieldset->addField('shadow_point', 'text', array(
            'name'      => 'shadow_point',
            'title'     => Mage::helper('systempoint')->__('Shadow Point'),
            'label'     => Mage::helper('systempoint')->__('Shadow Point'),            
            'required'  => true,
        ));
        
        /*$fieldset->addField('add_date', 'date', array(
          'label'     => Mage::helper('systempoint')->__('Add date'),
          'name'      => 'add_date',
          'after_element_html' => '',
          'tabindex' => 1, 
	      'required'  => true,
          'image' => $this->getSkinUrl('images/grid-cal.gif'),
          'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_LONG)
        ));
        
        $fieldset->addField('exp_date', 'date', array(
          'label'     => Mage::helper('systempoint')->__('Expire date'),
          'name'      => 'exp_date',
          'after_element_html' => '',
          'tabindex' => 1, 
	      'required'  => true,
          'image' => $this->getSkinUrl('images/grid-cal.gif'),
          'format' => Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_LONG)
        ));*/
        
        $fieldset->addField('userpoint_id', 'hidden', array(
            'name'      => 'id',
            'required'  => false,
        ));
        
 		$form->setMethod('post');
        $form->setUseContainer(true);
        $form->setId('edit_form');
        $form->setAction($this->getUrl('*/*/save'));
        $form->setValues(Mage::registry('frozen_userpoint')->getData());
        
        $this->setForm($form);
    }
}